package com.freejava.myblog.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

/**
 * 武侠剑客类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MySworder implements Serializable {
    // 剑客的ID
    @Id
    private String id;
    // 姓名
    @Field
    private String name;
    // 生平描述
    @Field
    private String description;
    // 绝招
    @Field
    private String skill;

    // 创建时间
    @Field
    private int created;
}
